package com.example.tactics.controller;

import com.example.tactics.service.ExcelService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

/**
 * description :
 * author :kang
 * create :2021-10-22 19:19:00
 */
@Slf4j
@RestController
@RequestMapping("excel")
public class ExcelController {

    @Autowired
    private ExcelService excelService;

    @PostMapping("select")
    public void select(@RequestParam String excel)throws IOException{
        excelService.select(excel);
    }
}
